BX.namespace("BX.Marketplace.Hook.Ap");BX.Marketplace.Hook.Ap={init:function(e){this.ajaxUrl=e.url||""},"delete":function(e){if(confirm(BX.message("REST_HOOK_DELETE_CONFIRM"))){BX.ajax({method:"POST",url:this.ajaxUrl,dataType:"json",data:{apId:e,action:"delete",sessid:BX.bitrix_sessid()},onsuccess:function(e){if(e.error){alert(BX.message("REST_HOOK_DELETE_ERROR"))}else{BX.reload()}}})}}};
//# sourceMappingURL=script.map.js